import { CoolController, BaseController } from '@cool-midway/core';
import { Body, Inject, Post, Get, Query } from '@midwayjs/core';
import { DemoUserInfoEntity } from '../../entity/info';
import { DemoUserInfoService } from '../../service/info';

/**
 * demo模块-用户信息
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: DemoUserInfoEntity,
  service: DemoUserInfoService,
  pageQueryOp: {
    keyWordLikeFields: ['name', 'nickname'],
    fieldEq: ['giftCount', 'orderCount'],
  }
})
export class AdminDemoUserInfoController extends BaseController {
    @Inject()
    demoUserInfoService: DemoUserInfoService;
}
